package b.i.d;

import android.graphics.Typeface;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

/* compiled from: TypefaceCompatApi28Impl */
public class h extends g {
    public Typeface j(Object obj) {
        try {
            Array.set(Array.newInstance(this.g, 1), 0, obj);
            return (Typeface) this.m.invoke(null, new Object[]{r0, "sans-serif", Integer.valueOf(-1), Integer.valueOf(-1)});
        } catch (IllegalAccessException | InvocationTargetException e) {
            throw new RuntimeException(e);
        }
    }

    public Method p(Class<?> cls) throws NoSuchMethodException {
        r2 = new Class[4];
        Class cls2 = Integer.TYPE;
        r2[2] = cls2;
        r2[3] = cls2;
        Method declaredMethod = Typeface.class.getDeclaredMethod("createFromFamiliesWithDefault", r2);
        declaredMethod.setAccessible(true);
        return declaredMethod;
    }
}
